package org.travel_system.service;

import org.travel_system.pojo.User;

public interface UserService {
    //根据用户名查询用户
    User findUserByName(String userName);

    //注册
    int register(String username, String password);

    //更新
    int update(Integer id, User user);

    //更新密码
    int updatePwd(Integer id, String newPwd);

    //查询id
    Integer findUserId(String username);
}
